home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / demos / 134 / gfa / esccode.doc < prev    next >
Encoding:
Text File  |  1987-04-17  |  5.4 KB  |  217 lines

  1.                     Atari ST VT52 Emulator   ( Escape Codes )
  2.  
  3. The Atari VT52 Emulator uses a variety of Cursor Controls and Text Commands.
  4. These Commands can be accessed using the PRINT ESCAPE Sequence.
  5. Some of these Commands may be useful, some may not.
  6.  
  7. Below is a Listing of all of the Escape Commands and what their Function is.
  8.  
  9.                                                       Jim Luczak   02/27/87
  10.  
  11. *****************************************************************************
  12.  
  13. CODE    FUNCTION        GFA BASIC PRINT SEQUENCE
  14.  
  15. -----------------------------------------------------------------------------
  16.  
  17. UPPER CASE
  18.  
  19. ESC A    CURSOR UP               Print Chr$(27);"A";
  20.  
  21.     Moves the Cursor Up one line. If the Cursor was already on the Top
  22.     Line, nothing happens.
  23.  
  24.  
  25. ESC B    CURSOR DOWN              Print Chr$(27);"B";
  26.  
  27.     Positions the Cursor one Line Down. If the Cursor is already on the
  28.     bottom line,nothiong happens.
  29.  
  30.  
  31. ESC C   CURSOR RIGHT              Print Chr$(27);"C";
  32.  
  33.     Moves the Cursor one Column to the Right.
  34.  
  35.  
  36. ESC D    CURSOR LEFT              Print Chr$(27);"D";
  37.  
  38.     Moves the Cursor one Column to the Left. If the Cursor is already
  39.     in the First Column, nothing happens.
  40.  
  41.  
  42. ESC E    CLEAR HOME               Print Chr$(27);"E";
  43.  
  44.     Clears the Entire screen, and moves the Cursor to the Upper Left
  45.     corner of the screen.
  46.  
  47.  
  48. ESC H    CURSOR HOME              Print Chr$(27);"H";
  49.  
  50.     Places the Cursor in the Upper Left cornor of the screen without
  51.     erasing the screen.
  52.  
  53.  
  54. ESC I    CURSOR UP                Print Chr$(27);"I";
  55.  
  56.     Same as ESC A except that if the Cursor is already at the Top of
  57.     the screen, a Blank Line is inserted, and the remainder of the screen
  58.     is scrolled down one line. The Column Position of the Cursor remains
  59.     Unchanged.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. ESC J    CLEAR BELOW CURSOR       Print Chr$(27);"J";
  69.  
  70.     Clears the screen Below the Cursor Position. The Cursor Position
  71.     is not changed.
  72.  
  73.  
  74. ESC K    CLEAR REMAINDER OF LINE  Print Chr$(27);"K";
  75.  
  76.     Clears from the Cursor Position to the end of the line that the Cursor
  77.     is in. The Cursor Position is cleared, however the Cursor Position
  78.     is not changed.
  79.  
  80.  
  81. ESC L    INSERT LINE              Print Chr$(27);"L";
  82.  
  83.     Inserts a Blank Line at the Cursor Position. The remainder of the
  84.     screen is scrolled Down one Line. The Cursor is placed at the start
  85.     of the new line.
  86.  
  87.  
  88. ESC M    DELETE LINE              Print Chr$(27);"M";
  89.  
  90.     Clears the Line at the Cursor Position. The Remainder of the screen
  91.     is scrolled Up one Line. The Cursor is placed at the start of the
  92.     line that filled the Deleted line.
  93.  
  94.  
  95. ESC Y    POSITION CURSOR  Print Chr$(27);"Y";Chr$(32+LINE);Chr$(32+COLUMN);
  96.  
  97.     Positions the Cursor at any location on the screen. The Cursor LINE
  98.     and COLUMN must be given in the Order shown above. 32 is an Offset
  99.     that is required.
  100.     Lines and Columns are counted Starting with 0.
  101.  
  102.     EXAMPLE: To set the Cursor to Line 5 Column 48 execute the following
  103.              PRINT Sequence.
  104.          
  105.          Print Chr$(27);"Y";Chr$(32+5);Chr$(32+48);
  106.  
  107.  
  108.  
  109. Lower Case
  110.  
  111.  
  112.  
  113. ESC b    SELECTS TEXT COLOR              Print Chr$(27);"b";Chr$( COLOR # )
  114.     
  115.     Sets Character Color for further output.
  116.  
  117.     Monochrome Color #              0 - 1
  118.     Medium Resolution Color #       0 - 3
  119.     Low Resolution Color #          0 - 15
  120.  
  121.  
  122. ESC c    SELECTS TEXT BACKGROUND COLOR   Print Chr$(27);"c";Chr$( Bck Color # )
  123.  
  124.     Sets Text Background Color for further output 
  125.  
  126.     Monochrome Bck Color #          0 - 1
  127.     Medium Resolution Bck Color #   0 - 3
  128.     Low Resolution Bck Color        0 - 15
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138. ESC d    CLEAR SCREEN TO CURSOR POSITION   Print Chr$(27);"d";
  139.  
  140.     Clears the screen from the Top to the Cursor Position ( Inclusive ).
  141.     The Cursor Position is not changed.
  142.  
  143.  
  144. ESC e    ENABLE CURSOR                   Print Chr$(27);"e";
  145.  
  146.     Makes the Cursor Visiable.      ( Turns the Cursor ON )
  147.  
  148.     ( Default - Cursor Disabled )
  149.  
  150.  
  151. ESC f    DISABLE CURSOR                  Print Chr$(27);"f";
  152.  
  153.     Makes the Cursor Invisiable     ( Turns the Cursor OFF ) 
  154.  
  155.     ( Default - Cursor Disabled )
  156.  
  157.  
  158. ESC j    SAVE CURSOR POSITION            Print Chr$(27);"j";
  159.     
  160.     Saves the Current Cursor Position.
  161.  
  162.  
  163. ESC k    SET CURSOR TO SAVED POSITION    Print Chr$(27);"k";
  164.  
  165.     Sets the Cursor to the Position Saved with the ESC j Sequence.
  166.  
  167.  
  168. ESC l    CLEAR LINE                      Print Chr$(27);"l";
  169.  
  170.     Clears the line at the Current Cursor Position. The Cursor is then
  171.     located at the start of the cleared line.
  172.  
  173.  
  174. ESC o    CLEAR FROM START                Print Chr$(27);"o";
  175.  
  176.     Clears a Line from the Start of the Line to the Cursor Position
  177.     ( Inclusive ). The Cursor Position is Unchanged.
  178.  
  179.  
  180. ESC p    SET INVERSE MODE ON             Print Chr$(27);"p";
  181.     
  182.     Enables the Inverse Text Mode for further output. Text and 
  183.     Text Background Colors are exchanged.
  184.  
  185.  
  186. ESC q    SET INVERSE MODE OFF            Print Chr$(27);"q";
  187.  
  188.     Disables the Inverse Text Mode for further output.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. ESC v    AUTOMATIC OVERFLOW ON           Print Chr$(27);"v";
  201.  
  202.     After the execution of this sequence, any output beyond the
  203.     End Of Line, will automatically start a New Line.
  204.  
  205.     ( Default - OverFlow ON )
  206.  
  207.  
  208. ESC w    AUTOMATIC OVERFLOW OFF          Print Chr$(27);"w";
  209.  
  210.     Deactivates the above Sequence. Ant output beyond the End Of Line,
  211.     will result in all the following Chaaracters to appear in the Last
  212.     Column.
  213.  
  214.     ( Default - OverFlow ON )
  215.  
  216. -----------------------------------------------------------------------------
  217.